cmake_minimum_required(VERSION 3.0.0)
project(FSA)
set(SABA_PATH /home/finch/sdk/saba)
set(IMGUI_PATH /home/finch/sdk/imgui)
set(AIUI_PATH lib/aiui)
set(BAIDU_SDK lib/aip-cpp-sdk-0.7.4)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
set(OpenGL_GL_PREFERENCE LEGACY)

find_package (OpenGL REQUIRED)
find_package (GLFW)
find_package (Bullet REQUIRED)

include_directories(
    ${AIUI_PATH}/include
    ${BAIDU_SDK}
    src
    ${IMGUI_PATH}
    ${IMGUI_PATH}/examples
    src/gl3w/include
    ${BULLET_INCLUDE_DIRS}
)

include_directories(
    ${SABA_PATH}/external/glm/include
    ${SABA_PATH}/external/stb/include
    ${SABA_PATH}/external/spdlog/include
    ${SABA_PATH}/external/tinyobjloader/include
    ${SABA_PATH}/external/tinyxfileloader/include
    ${SABA_PATH}/external/tinyddsloader/include
    ${SABA_PATH}/src
)

add_subdirectory(lib)
add_subdirectory(src)
#add_subdirectory(test)

add_executable(${PROJECT_NAME} 
    main.cpp
)

target_link_libraries(${PROJECT_NAME} 
    Agent
    #${AIUI_PATH}/libs/x64/libmsc.so
    #${AIUI_PATH}/libs/x64/libaiui.so
    /usr/lib/libmsc.so
    /usr/lib/libaiui.so
    Saba
    IMGUI
    jsoncpp
    curl
    crypto
    ${BULLET_LIBRARIES}
    pthread
    asound
    ${OPENGL_LIBRARY}
    ${GLFW_LIBRARIES}
)